<?= $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?= $this->headTitle(); ?>
        <?= $this->headMeta(); ?>
        <link type="text/css" rel="stylesheet" href="/css/global.css"/>
        <link type="text/css" rel="stylesheet" href="/css/treeview.css"/>
        <?= $this->headLink() ?>
        <script type="text/javascript" src="/js/jquery.js"></script>
        <script type="text/javascript" src="/js/jquery.cookie.js"></script>
        <script type="text/javascript" src="/js/jquery.treeview.js"></script>
        <? $this->headScript()->appendFile('/js/global.js') ?>
        <?= $this->headScript() ?>
    </head>
    <body>
        <div class="all">
            <div class="header">
                <div class="logo">
                    <a href="/<?= $this->language ?>"><span><?= $this->shopName ?></span><br/><?= $this->translate('Online store in Mena'); ?></a>
                </div> 
                <div class="contacts">
                    <img src="/images/phone.gif"/> 0634087932<br/>
                    <img src="/images/skype.png"/> menashop.com.ua<br/>
                    <img src="/images/email.png"/> menashoponline@gmail.com
                </div>  
                <div class="main-menu">
                    <div class="languages">
                        <?= $this->translate('Language'); ?>			
                        <a href="/<?= $this->language . $this->currentUrl ?>">
                            <img src="/images/<?= $this->language ?>_flag.png"/>
                            <span><?= $this->translate($this->language); ?></span>					
                        </a>
                        <?= $this->translate('others'); ?>
                        <? foreach ($this->languages as $language): ?>
                            <? if ($language != $this->language): ?>
                                <a href="<?= '/' . $language . $this->currentUrl ?>">
                                    <img src="/images/<?= $language ?>_flag.png"/>
                                    <span><?= $this->translate($language); ?></span>
                                </a>
                            <? endif ?>
                        <? endforeach ?>
                    </div>
                    <div class="menu-items">
                        <a href="/<?= $this->language ?>/payment">
                            <?= $this->translate('Payment and shipment'); ?>
                        </a>
                        <a href="/<?= $this->language ?>/warranty">
                            <?= $this->translate('Warranty'); ?>
                        </a>
                        <a href="/<?= $this->language ?>/faq">
                            <?= $this->translate('FAQ'); ?>
                        </a>
                        <a href="/<?= $this->language ?>/contacts">
                            <?= $this->translate('Contacts'); ?>
                        </a>
                    </div>
                </div>                          

            </div>
            <div class="shop-panel">
                <div class="catalog-header">
                    <a href="/<?= $this->language ?>">
                        <img src="/images/catalog.gif"/>
                        <span><?= $this->translate("Catalog"); ?></span>
                    </a>
                </div>
                <div class="cart">
                    <a href="/<?= $this->language ?>/cart"><img src="/images/cart.gif"/><span><?= $this->cartCount; ?> <?= $this->translate('in cart'); ?></span></a>
                </div>
                <div class="search">
                    <?= $this->formSearch ?>
                    <?= $this->Errors($this->errors) ?>
                </div>


            </div>
            <div class="main">
                <div class="catalog">
                    <?= $this->categoryTree(); ?>
                </div>
                <div class="content">
                    <?= $this->layout()->content; ?>
                </div>
            </div>
        </div>
        <div class="footer">
            <a href="/"><?= $this->shopName ?> - <?= $this->translate('Online store in Mena'); ?></a>
        </div>

    </body>
</html>
